package com.xieyingwangluo.yxpart.mapper;

import com.xieyingwangluo.yxpart.entity.BlacklistModel;
import com.xieyingwangluo.yxpart.entity.CompanyInfoModel;
import com.xieyingwangluo.yxpart.entity.DemoModel;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CompanyInfoMapper {

    /**
     * 添加
     * @return
     */
    int add(CompanyInfoModel companyInfoModel);

    /**
     * 删除
     * @return
     */
    int del(@Param("noid") String noid);

    /**
     * 编辑用户信息
     * @param
     */
    int update(CompanyInfoModel companyInfoModel);

    /**
     * 根据id获取用户信息
     * @param noid
     * @return
     */
    CompanyInfoModel selO(@Param("noid") String noid);

    /**
     * 获取用户列表
     * @return
     */
    List<CompanyInfoModel> selA(CompanyInfoModel companyInfoModel);

}
